package com.yc.damai.web.feign;

import com.yc.damai.entity.DmProduct;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class OrderDoImpl implements OrderDo{
    private List<DmProduct> news;
    private List<DmProduct> hots;

    @Override
    public List<DmProduct> queryNew() {
        return news;
    }

    @Override
    public List<DmProduct> queryHot() {
        return hots;
    }

    public void cacheNews(List<DmProduct> news) {
        this.news = news;
    }

    public void cacheHots(List<DmProduct> hots) {
        this.hots = hots;
    }
}
